cmake_minimum_required(VERSION 3.5.0)
project(D11)

add_definitions(-DUNICODE -D_UNICODE)

set(CMAKE_CXX_STANDARD 17)

file(GLOB dx11_srcs *.cpp)

add_library(dx11 STATIC ${dx11_srcs})
target_link_libraries(dx11 d3d11.lib  d3dcompiler.lib  dxguid.lib winmm.lib comctl32.lib)


add_executable(testWindow WIN32 tests/testWindow.cpp)
target_link_libraries(testWindow dx11)
target_sources(testWindow PRIVATE recource.rc)
